package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.example.demo.Excel.ExcelColumn;

/**
 * <p>
 * 用户通知表,包含了所有用户的消息
 * </p>
 *
 * @author hanfei
 * @since 2021-05-21
 */
@ApiModel("用户通知表,包含了所有用户的消息")
public class Notify implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    @ExcelColumn(value = "主键",col = 1)
    private Long id;
    /**
     * 异常id
     */
    @TableField("fault_id")
    @ApiModelProperty(value = "异常id")
    @ExcelColumn(value = "异常id",col = 1)
    private Long fault_id;
    /**
     * 接受者用户ID
     */
    @TableField("reciver_id")
    @ApiModelProperty(value = "接受者用户ID")
    @ExcelColumn(value = "接受者用户ID",col = 1)
    private String reciver_id;
    /**
     * 是否已读,0未读,1已读
     */
    @TableField("is_read")
    @ApiModelProperty(value = "是否已读,0未读,1已读")
    @ExcelColumn(value = "是否已读,0未读,1已读",col = 1)
    private Boolean is_read;
    /**
     * 创建时间:按当前时间自动创建
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间:按当前时间自动创建")
    @ExcelColumn(value = "创建时间:按当前时间自动创建",col = 1)
    private Date create_time;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFault_id() {
        return fault_id;
    }

    public void setFault_id(Long fault_id) {
        this.fault_id = fault_id;
    }

    public String getReciver_id() {
        return reciver_id;
    }

    public void setReciver_id(String reciver_id) {
        this.reciver_id = reciver_id;
    }

    public Boolean getIs_read() {
        return is_read;
    }

    public void setIs_read(Boolean is_read) {
        this.is_read = is_read;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Notify{" +
        "id=" + id +
        ", fault_id=" + fault_id +
        ", reciver_id=" + reciver_id +
        ", is_read=" + is_read +
        ", create_time=" + create_time +
        "}";
    }
}
